package org.langqiao.jvm.base;


class Tester{
	static{
		System.out.println("Tester类初始化，静态代码块");
	}
}

public class TestA1 {

	public static void main(String[] args) {
		/*A a = new A();
		a.a ++;
		System.out.println(a.a);
		TestA2.a2();*/
		ClassLoader cl = ClassLoader.getSystemClassLoader();
		try {
			cl.loadClass("Tester");
			System.out.println("系统加载Tester类");
			Class.forName("Tester");
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
		
	}

}

